import React from 'react'
import './index.css'
import Item from '../Item/Item'
export default function Main({todos, deleteTodo, checkOne}) {
    return (
        <ul className="todo-main">
            <ul className='todo-main'>
              {todos.map(todo => (
                <Item key={todo.id} todo={todo} deleteTodo={deleteTodo} checkOne={checkOne}></Item>
              ))}
            </ul>
        
        </ul>
    )
  
}

























                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               